home *** CD-ROM | disk | FTP | other *** search
- unit ScopeTestOtherForm;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
-
- type
- TOtherForm = class(TForm)
- procedure FormCreate(Sender: TObject);
- public
- Foo: Integer;
- end;
-
- var
- OtherForm: TOtherForm;
-
- function Foo: Integer;
-
- implementation
-
- {$R *.DFM}
-
- function Foo: Integer;
- begin
- Result := 100;
- end;
-
- procedure TOtherForm.FormCreate(Sender: TObject);
- begin
- Foo := 7;
- end;
-
- end.
-